<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>NEWS-1.8.7 - RDoc Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- this is page.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0-preview2 NOT FOUND -->
  </div> <!-- end action bar -->


 <div class='wrapper hdiv'>

 


<nav id='vapp' role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-NEWS+for+Ruby+1.8.7">NEWS for Ruby 1.8.7</a>
    <li><a href="#label-Changes+since+the+1.8.6+release">Changes since the 1.8.6 release</a>
    <li><a href="#label-Configuration+changes">Configuration changes</a>
    <li><a href="#label-Global+constants">Global constants</a>
    <li><a href="#label-Library+updates+-28outstanding+ones+only-29">Library updates (outstanding ones only)</a>
    <li><a href="#label-Interpreter+Implementation">Interpreter Implementation</a>
    <li><a href="#label-Compatibility+issues+-28excluding+feature+bug+fixes-29">Compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Changes+since+the+1.8.5+release">Changes since the 1.8.5 release</a>
    <li><a href="#label-New+platforms-2Fbuild+tools+support">New platforms/build tools support</a>
    <li><a href="#label-Global+constants">Global constants</a>
    <li><a href="#label-Library+updates+-28outstanding+ones+only-29">Library updates (outstanding ones only)</a>
    <li><a href="#label-Compatibility+issues+-28excluding+feature+bug+fixes-29">Compatibility issues (excluding feature bug fixes)</a>
  </ul>
</div>

  <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>

  <div id="project-metadata">
   <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    
<div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
    <li><a href="../NEWS/NEWS-1_8_7.html">NEWS-1.8.7</a>
    <li><a href="../NEWS/NEWS-1_9_1.html">NEWS-1.9.1</a>
    <li><a href="../NEWS/NEWS-1_9_2.html">NEWS-1.9.2</a>
    <li><a href="../NEWS/NEWS-1_9_3.html">NEWS-1.9.3</a>
    <li><a href="../NEWS/NEWS-2_0_0.html">NEWS-2.0.0</a>
    <li><a href="../NEWS/NEWS-2_1_0.html">NEWS-2.1.0</a>
    <li><a href="../NEWS/NEWS-2_2_0.html">NEWS-2.2.0</a>
    <li><a href="../NEWS/NEWS-2_3_0.html">NEWS-2.3.0</a>
    <li><a href="../NEWS/NEWS-2_4_0.html">NEWS-2.4.0</a>
    <li><a href="../NEWS/NEWS-2_5_0.html">NEWS-2.5.0</a>
    <li><a href="../NEWS/NEWS-2_6_0.html">NEWS-2.6.0</a>
    <li><a href="../NEWS/NEWS-2_7_0.html">NEWS-2.7.0</a>
    <li><a href="../NEWS/NEWS-3_0_0_md.html">NEWS-3.0.0</a>
    <li><a href="../NEWS/NEWS-3_1_0_md.html">NEWS-3.1.0</a>
    <li><a href="../NEWS/NEWS-3_2_0_md.html">NEWS-3.2.0</a>
    <li><a href="../bsearch_rdoc.html">bsearch</a>
    <li><a href="../bug_triaging_rdoc.html">bug_triaging</a>
    <li><a href="../case_mapping_rdoc.html">case_mapping</a>
    <li><a href="../character_selectors_rdoc.html">character_selectors</a>
    <li><a href="../command_injection_rdoc.html">command_injection</a>
    <li><a href="../contributing_md.html">contributing</a>
    <li><a href="../contributing/building_ruby_md.html">building_ruby</a>
    <li><a href="../contributing/documentation_guide_md.html">documentation_guide</a>
    <li><a href="../contributing/glossary_md.html">glossary</a>
    <li><a href="../contributing/making_changes_to_ruby_md.html">making_changes_to_ruby</a>
    <li><a href="../contributing/making_changes_to_stdlibs_md.html">making_changes_to_stdlibs</a>
    <li><a href="../contributing/reporting_issues_md.html">reporting_issues</a>
    <li><a href="../contributing/testing_ruby_md.html">testing_ruby</a>
    <li><a href="../dig_methods_rdoc.html">dig_methods</a>
    <li><a href="../distribution_md.html">distribution</a>
    <li><a href="../dtrace_probes_rdoc.html">dtrace_probes</a>
    <li><a href="../encodings_rdoc.html">encodings</a>
    <li><a href="../extension_ja_rdoc.html">extension.ja</a>
    <li><a href="../extension_rdoc.html">extension</a>
    <li><a href="../fiber_md.html">fiber</a>
    <li><a href="../format_specifications_rdoc.html">format_specifications</a>
    <li><a href="../globals_rdoc.html">globals</a>
    <li><a href="../implicit_conversion_rdoc.html">implicit_conversion</a>
    <li><a href="../keywords_rdoc.html">keywords</a>
    <li><a href="../maintainers_md.html">maintainers</a>
    <li><a href="../marshal_rdoc.html">marshal</a>
    <li><a href="../memory_view_md.html">memory_view</a>
    <li><a href="../optparse/argument_converters_rdoc.html">argument_converters</a>
    <li><a href="../optparse/creates_option_rdoc.html">creates_option</a>
    <li><a href="../optparse/option_params_rdoc.html">option_params</a>
    <li><a href="../optparse/tutorial_rdoc.html">tutorial</a>
    <li><a href="../packed_data_rdoc.html">packed_data</a>
    <li><a href="../ractor_md.html">ractor</a>
    <li><a href="../regexp_rdoc.html">regexp</a>
    <li><a href="../regexp/methods_rdoc.html">methods</a>
    <li><a href="../regexp/unicode_properties_rdoc.html">unicode_properties</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING.html">COPYING</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING_ja.html">COPYING.ja</a>
    <li><a href="../ruby_3_3_0_preview2/LEGAL.html">LEGAL</a>
    <li><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a>
    <li><a href="../ruby_3_3_0_preview2/README_ja_md.html">README.ja</a>
    <li><a href="../ruby_3_3_0_preview2/README_md.html">README</a>
    <li><a href="../security_rdoc.html">security</a>
    <li><a href="../signals_rdoc.html">signals</a>
    <li><a href="../standard_library_rdoc.html">standard_library</a>
    <li><a href="../strftime_formatting_rdoc.html">strftime_formatting</a>
    <li><a href="../syntax_rdoc.html">syntax</a>
    <li><a href="../syntax/assignment_rdoc.html">assignment</a>
    <li><a href="../syntax/calling_methods_rdoc.html">calling_methods</a>
    <li><a href="../syntax/comments_rdoc.html">comments</a>
    <li><a href="../syntax/control_expressions_rdoc.html">control_expressions</a>
    <li><a href="../syntax/exceptions_rdoc.html">exceptions</a>
    <li><a href="../syntax/literals_rdoc.html">literals</a>
    <li><a href="../syntax/methods_rdoc.html">methods</a>
    <li><a href="../syntax/miscellaneous_rdoc.html">miscellaneous</a>
    <li><a href="../syntax/modules_and_classes_rdoc.html">modules_and_classes</a>
    <li><a href="../syntax/pattern_matching_rdoc.html">pattern_matching</a>
    <li><a href="../syntax/precedence_rdoc.html">precedence</a>
    <li><a href="../syntax/refinements_rdoc.html">refinements</a>
    <li><a href="../timezones_rdoc.html">timezones</a>
    <li><a href="../windows_md.html">windows</a>
    <li><a href="../yjit/yjit_md.html">yjit</a>
    <li><a href="../yjit/yjit_hacking_md.html">yjit_hacking</a>
  </ul>
</div>

   </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main" aria-label="Page NEWS/NEWS-1.8.7">

<h1 id="label-NEWS+for+Ruby+1.8.7"><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a> for Ruby 1.8.7<span><a href="#label-NEWS+for+Ruby+1.8.7">&para;</a> <a href="#top">&uarr;</a></span></h1>

<p>This document is a list of user visible feature changes made between releases except for bug fixes.</p>

<p>Note that each entry is kept so brief that no reason behind or reference information is supplied with.  For a full list of changes with all sufficient information, see the ChangeLog file.</p>

<h2 id="label-Changes+since+the+1.8.6+release">Changes since the 1.8.6 release<span><a href="#label-Changes+since+the+1.8.6+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Configuration+changes">Configuration changes<span><a href="#label-Configuration+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>default C flags</p>

<p>Some C compiler flags may be added by default depending on your environment.  Specify optflags=.. and warnflags=.. as necessary to override them.</p>
</li><li>
<p>vendor_ruby directory</p>

<p>A new library directory named ‘vendor_ruby’ is introduced in addition to ‘site_ruby’.  The idea is to separate libraries installed by the package system (‘vendor’) from manually (‘site’) installed libraries preventing the former from getting overwritten by the latter, while preserving the user option to override vendor libraries with site libraries. (‘site_ruby’ takes precedence over ‘vendor_ruby’)</p>

<p>If you are a package maintainer, make each library package configure the library passing the ‘–vendor’ option to ‘extconf.rb’ so that the library files will get installed under ‘vendor_ruby’.</p>

<p>You can change the directory locations using configure options such as ‘–with-sitedir=DIR’ and ‘–with-vendordir=DIR’.</p>
</li></ul>

<h3 id="label-Global+constants">Global constants<span><a href="#label-Global+constants">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>new constants</p>
<ul><li>
<p>RUBY_COPYRIGHT</p>
</li><li>
<p>RUBY_DESCRIPTION</p>
</li></ul>
</li></ul>

<h3 id="label-Library+updates+-28outstanding+ones+only-29">Library updates (outstanding ones only)<span><a href="#label-Library+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>new library</p>
<ul><li>
<p>securerandom</p>
</li></ul>
</li><li>
<p>builtin classes</p>
<ul><li>
<p><a href="../Array.html#method-i-flatten"><code>Array#flatten</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-flatten-21"><code>Array#flatten!</code></a></p>

<p>Takes an optional argument that determines the level of recursion to flatten.</p>
</li><li>
<p><a href="../Array.html#method-i-eql-3F"><code>Array#eql?</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-hash"><code>Array#hash</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-3D-3D"><code>Array#==</code></a></p>
</li><li>
<p>Array#&lt;=&gt;</p>

<p>Handle recursive data properly.</p>
</li><li>
<p><a href="../Array.html#method-i-index"><code>Array#index</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-rindex"><code>Array#rindex</code></a></p>

<p>Use a given block if no argument is given.</p>
</li><li>
<p><a href="../Array.html#method-i-collect-21"><code>Array#collect!</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-map-21"><code>Array#map!</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-each"><code>Array#each</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-each_index"><code>Array#each_index</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-reverse_each"><code>Array#reverse_each</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-reject"><code>Array#reject</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-reject-21"><code>Array#reject!</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-delete_if"><code>Array#delete_if</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-select"><code>Array#select</code></a></p>

<p>Return an enumerator if no block is given.</p>

<p>Note that map and collect still return an array unlike Ruby 1.9 to keep compatibility.</p>
</li><li>
<p><a href="../Array.html#method-i-pop"><code>Array#pop</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-shift"><code>Array#shift</code></a></p>

<p>Take an optional argument specifying the number of elements to remove.</p>
</li><li>
<p>Array#choice</p>
</li><li>
<p><a href="../Array.html#method-i-combination"><code>Array#combination</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-cycle"><code>Array#cycle</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-drop"><code>Array#drop</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-drop_while"><code>Array#drop_while</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-permutation"><code>Array#permutation</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-product"><code>Array#product</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-shuffle"><code>Array#shuffle</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-shuffle-21"><code>Array#shuffle!</code></a></p>
</li><li>
<p><a href="../Array.html#method-i-take"><code>Array#take</code></a>,</p>
</li><li>
<p><a href="../Array.html#method-i-take_while"><code>Array#take_while</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Binding.html#method-i-eval"><code>Binding#eval</code></a></p>

<p>New method.</p>
</li><li>
<p><a href="../Dir.html#method-i-each"><code>Dir#each</code></a></p>
</li><li>
<p>Dir#foreach</p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../Enumerator.html"><code>Enumerable::Enumerator</code></a></p>

<p>New class for various enumeration defined by the enumerator library.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-each_slice"><code>Enumerable#each_slice</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-each_cons"><code>Enumerable#each_cons</code></a></p>
</li><li>
<p><a href="../Object.html#method-i-to_enum"><code>Object#to_enum</code></a></p>
</li><li>
<p><a href="../Object.html#method-i-enum_for"><code>Object#enum_for</code></a></p>

<p>New methods for various enumeration defined by the enumerator library.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-count"><code>Enumerable#count</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-cycle"><code>Enumerable#cycle</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-drop"><code>Enumerable#drop</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-drop_while"><code>Enumerable#drop_while</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-find_index"><code>Enumerable#find_index</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-first"><code>Enumerable#first</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-group_by"><code>Enumerable#group_by</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-max_by"><code>Enumerable#max_by</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-min_by"><code>Enumerable#min_by</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-minmax"><code>Enumerable#minmax</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-minmax_by"><code>Enumerable#minmax_by</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-none-3F"><code>Enumerable#none?</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-one-3F"><code>Enumerable#one?</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-take"><code>Enumerable#take</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-take_while"><code>Enumerable#take_while</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-find"><code>Enumerable#find</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-find_all"><code>Enumerable#find_all</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-partition"><code>Enumerable#partition</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-reject"><code>Enumerable#reject</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-select"><code>Enumerable#select</code></a></p>
</li><li>
<p><a href="../Enumerable.html#method-i-sort_by"><code>Enumerable#sort_by</code></a></p>

<p>Return an enumerator if no block is given.</p>

<p>Note that map and collect still return an array unlike Ruby 1.9 to keep compatibility.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-inject"><code>Enumerable#inject</code></a></p>

<p>Accepts a binary operator instead of a block.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-reduce"><code>Enumerable#reduce</code></a></p>

<p>New alias to inject.</p>
</li><li>
<p><a href="../Enumerable.html#method-i-to_a"><code>Enumerable#to_a</code></a></p>

<p>Can take optional arguments and pass them to each.</p>
</li><li>
<p><a href="../Hash.html#method-i-eql-3F"><code>Hash#eql?</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-hash"><code>Hash#hash</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-3D-3D"><code>Hash#==</code></a></p>

<p>Handle recursive data properly.</p>
</li><li>
<p><a href="../Hash.html#method-i-delete_if"><code>Hash#delete_if</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-each"><code>Hash#each</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-each_key"><code>Hash#each_key</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-each_pair"><code>Hash#each_pair</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-each_value"><code>Hash#each_value</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-reject-21"><code>Hash#reject!</code></a></p>
</li><li>
<p><a href="../Hash.html#method-i-select"><code>Hash#select</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-delete_if"><code>ENV.delete_if</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-each"><code>ENV.each</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-each_key"><code>ENV.each_key</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-each_pair"><code>ENV.each_pair</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-each_value"><code>ENV.each_value</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-reject-21"><code>ENV.reject!</code></a></p>
</li><li>
<p><a href="../ENV.html#method-c-select"><code>ENV.select</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../GC.html#method-c-stress"><code>GC.stress</code></a></p>
</li><li>
<p><a href="../GC.html#method-c-stress-3D"><code>GC.stress=</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Integer.html#method-i-ord"><code>Integer#ord</code></a></p>
</li><li>
<p><a href="../Integer.html#method-i-odd-3F"><code>Integer#odd?</code></a></p>
</li><li>
<p><a href="../Integer.html#method-i-even-3F"><code>Integer#even?</code></a></p>
</li><li>
<p><a href="../Integer.html#method-i-pred"><code>Integer#pred</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Integer.html#method-i-downto"><code>Integer#downto</code></a></p>
</li><li>
<p><a href="../Integer.html#method-i-times"><code>Integer#times</code></a></p>
</li><li>
<p><a href="../Integer.html#method-i-upto"><code>Integer#upto</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../IO.html#method-i-each"><code>IO#each</code></a></p>
</li><li>
<p><a href="../IO.html#method-i-each_line"><code>IO#each_line</code></a></p>
</li><li>
<p><a href="../IO.html#method-i-each_byte"><code>IO#each_byte</code></a></p>
</li><li>
<p><a href="../IO.html#method-c-foreach"><code>IO.foreach</code></a></p>
</li><li>
<p><a href="../ARGF.html#method-i-each"><code>ARGF.each</code></a></p>
</li><li>
<p><a href="../ARGF.html#method-i-each_line"><code>ARGF.each_line</code></a></p>
</li><li>
<p><a href="../ARGF.html#method-i-each_byte"><code>ARGF.each_byte</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p>IO#bytes</p>
</li><li>
<p>IO#chars</p>
</li><li>
<p><a href="../IO.html#method-i-each_char"><code>IO#each_char</code></a></p>
</li><li>
<p><a href="../IO.html#method-i-getbyte"><code>IO#getbyte</code></a></p>
</li><li>
<p>IO#lines</p>
</li><li>
<p><a href="../IO.html#method-i-readbyte"><code>IO#readbyte</code></a></p>
</li><li>
<p>ARGF.bytes</p>
</li><li>
<p>ARGF.chars</p>
</li><li>
<p><a href="../ARGF.html#method-i-each_char"><code>ARGF.each_char</code></a></p>
</li><li>
<p><a href="../ARGF.html#method-i-getbyte"><code>ARGF.getbyte</code></a></p>
</li><li>
<p>ARGF.lines</p>
</li><li>
<p><a href="../ARGF.html#method-i-readbyte"><code>ARGF.readbyte</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Method.html#method-i-name"><code>Method#name</code></a></p>
</li><li>
<p><a href="../Method.html#method-i-owner"><code>Method#owner</code></a></p>
</li><li>
<p><a href="../Method.html#method-i-receiver"><code>Method#receiver</code></a></p>
</li><li>
<p><a href="../UnboundMethod.html#method-i-name"><code>UnboundMethod#name</code></a></p>
</li><li>
<p><a href="../UnboundMethod.html#method-i-owner"><code>UnboundMethod#owner</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Module.html#method-i-class_exec"><code>Module#class_exec</code></a></p>
</li><li>
<p><a href="../Module.html#method-i-module_exec"><code>Module#module_exec</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../Numeric.html#method-i-step"><code>Numeric#step</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../BasicObject.html#method-i-instance_exec"><code>Object#instance_exec</code></a></p>
</li><li>
<p><a href="../Kernel.html#method-i-tap"><code>Object#tap</code></a></p>

<p>New methods.</p>
</li><li>
<p><a href="../ObjectSpace.html#method-c-each_object"><code>ObjectSpace.each_object</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../Process.html#method-c-exec"><code>Process.exec</code></a> implemented.</p>
</li><li>
<p><a href="../Range.html#method-i-each"><code>Range#each</code></a></p>
</li><li>
<p><a href="../Range.html#method-i-step"><code>Range#step</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../Regexp.html#method-c-union"><code>Regexp.union</code></a> accepts an array of patterns.</p>
</li><li>
<p><a href="../String.html#method-i-bytes"><code>String#bytes</code></a></p>

<p>New method</p>
</li><li>
<p><a href="../String.html#method-i-bytesize"><code>String#bytesize</code></a></p>

<p>New method, returning the size in bytes. (alias length and size)</p>
</li><li>
<p><a href="../String.html#method-i-chars"><code>String#chars</code></a></p>
</li><li>
<p><a href="../String.html#method-i-each_char"><code>String#each_char</code></a></p>
</li><li>
<p><a href="../String.html#method-i-lines"><code>String#lines</code></a></p>
</li><li>
<p><a href="../String.html#method-i-partition"><code>String#partition</code></a></p>
</li><li>
<p><a href="../String.html#method-i-rpartition"><code>String#rpartition</code></a></p>
</li><li>
<p><a href="../String.html#method-i-start_with-3F"><code>String#start_with?</code></a></p>
</li><li>
<p><a href="../String.html#method-i-end_with-3F"><code>String#end_with?</code></a></p>

<p>New methods.  These are $KCODE aware unlike index, rindex and include?.</p>
</li><li>
<p><a href="../String.html#method-i-each_byte"><code>String#each_byte</code></a></p>
</li><li>
<p>String#each</p>
</li><li>
<p><a href="../String.html#method-i-each_line"><code>String#each_line</code></a></p>
</li><li>
<p><a href="../String.html#method-i-gsub"><code>String#gsub(pattern)</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../String.html#method-i-upto"><code>String#upto</code></a></p>

<p>An optional second argument is added to specify if the last value should be included.</p>
</li><li>
<p><a href="../StopIteration.html"><code>StopIteration</code></a></p>

<p>New exception class that causes <a href="../Kernel.html#method-i-loop"><code>Kernel#loop</code></a> to stop iteration when raised.</p>
</li><li>
<p><a href="../Struct.html#method-i-each"><code>Struct#each</code></a></p>
</li><li>
<p><a href="../Struct.html#method-i-each_pair"><code>Struct#each_pair</code></a></p>

<p>Return an enumerator if no block is given.</p>
</li><li>
<p><a href="../Symbol.html#method-i-to_proc"><code>Symbol#to_proc</code></a></p>

<p>New method.</p>
</li><li>
<p>__method__</p>

<p>New global function that returns the name of the current method as a <a href="../Symbol.html"><code>Symbol</code></a>.</p>
</li></ul>
</li><li>
<p>enumerator</p>
<ul><li>
<p><a href="../Enumerator.html"><code>Enumerator</code></a> is now a built-in module.  The next and rewind methods are implemented using the “generator” library.  Use with care and be aware of the performance loss.</p>
</li></ul>
</li><li>
<p>ipaddr</p>
<ul><li>
<p>New methods</p>
<ul><li>
<p>IPAddr#&lt;=&gt;</p>
</li><li>
<p>IPAddr#succ</p>

<p>IPAddr objects are now comparable and enumerable having these methods.  This also means that it is possible to have a <a href="../Range.html"><code>Range</code></a> object between two IPAddr objects.</p>
</li><li>
<p>IPAddr#to_range</p>

<p>A new method to create a <a href="../Range.html"><code>Range</code></a> object for the (network) address.</p>
</li></ul>
</li><li>
<p>Type coercion support</p>
<ul><li>
<p>IPAddr#&amp;</p>
</li><li>
<p>IPAddr#|</p>
</li><li>
<p>IPAddr#==</p>
</li><li>
<p>IPAddr#include?</p>

<p>These methods now accept a string or an integer instead of an IPAddr object as the argument.</p>
</li></ul>
</li></ul>
</li><li>
<p>net/smtp</p>
<ul><li>
<p>Support SSL/TLS.</p>
</li></ul>
</li><li>
<p>openssl</p>
<ul><li>
<p>New classes</p>
<ul><li>
<p>OpenSSL::PKey::EC</p>
</li><li>
<p>OpenSSL::PKey::EC::Group</p>
</li><li>
<p>OpenSSL::PKey::EC::Point</p>
</li><li>
<p>OpenSSL::PKey::PKCS5</p>
</li><li>
<p>OpenSSL::SSL::Session</p>
</li></ul>
</li><li>
<p>Documentation!</p>
</li><li>
<p>Various new methods (see documentation).</p>
</li><li>
<p>Remove redundant module namespace in Cipher, Digest, PKCS7, PKCS12. Compatibility classes are provided which will be removed in Ruby 1.9.</p>
</li></ul>
</li><li>
<p>shellwords</p>
<ul><li>
<p>Add methods for escaping shell-unsafe characters:</p>
<ul><li>
<p>Shellwords.join</p>
</li><li>
<p>Shellwords.escape</p>
</li><li>
<p>Array#shelljoin</p>
</li><li>
<p>String#shellescape</p>
</li></ul>
</li><li>
<p>Add shorthand methods:</p>
<ul><li>
<p>Shellwords.split (alias shellwords)</p>
</li><li>
<p>String#shellsplit</p>
</li></ul>
</li></ul>
</li><li>
<p>stringio</p>
<ul><li>
<p>StringIO#getbyte</p>
</li><li>
<p>StringIO#readbyte</p>

<p>New methods. (aliases for compatibility with 1.9)</p>
</li><li>
<p>StringIO#each_char</p>
</li><li>
<p>StringIO#chars</p>

<p>New methods.</p>
</li><li>
<p>StringIO#each</p>
</li><li>
<p>StringIO#each_line</p>
</li><li>
<p>StringIO#each_byte</p>

<p>Return an enumerator if no block is given.</p>
</li></ul>
</li><li>
<p>tempfile</p>
<ul><li>
<p>Tempfile.open and Tempfile.new now accept a suffix for the temporary file to be created.  To specify a suffix, pass an array of [basename, suffix] as the first argument.</p>

<pre>Tempfile.open([&#39;image&#39;, &#39;jpg&#39;]) { |tempfile| ... }</pre>
</li></ul>
</li><li>
<p>tmpdir</p>
<ul><li>
<p>New method:</p>
<ul><li>
<p>Dir.mktmpdir</p>
</li></ul>
</li></ul>
</li><li>
<p>uri</p>
<ul><li>
<p>added LDAPS scheme.</p>
</li><li>
<p>Change for RFC3986:</p>
<ul><li>
<p>FTP</p>
<ul><li>
<p>URI(‘<a href="ftp://example.com/foo').path">example.com/foo’).path</a> #=&gt; ‘foo’</p>
</li><li>
<p>URI(‘<a href="ftp://example.com/%2Ffoo').path">example.com/%2Ffoo’).path</a> #=&gt; ‘/foo’</p>
</li><li>
<p>URI::FTP.build([nil, ‘example.com’, nil, ‘/foo’, ‘i’]).to_s #=&gt; ‘<a href="ftp://example.com/%2Ffoo;type=i">example.com/%2Ffoo;type=i</a>’</p>
</li></ul>
</li><li>
<p>URI merge</p>
<ul><li>
<p>URI(‘<a href="http://a/b/c/d;p?q').merge('?y">a/b/c/d;p?q’).merge(‘?y</a>’) == URI(‘<a href="http://a/b/c/d;p?y">a/b/c/d;p?y</a>’)</p>
</li><li>
<p>URI(‘<a href="http://a/b/c/d;p?q').merge('/./g">a/b/c/d;p?q’).merge(‘/./g</a>’) == URI(‘<a href="http://a/g">a/g</a>’)</p>
</li><li>
<p>URI(‘<a href="http://a/b/c/d;p?q').merge('/../g">a/b/c/d;p?q’).merge(‘/../g</a>’) == URI(‘<a href="http://a/g">a/g</a>’)</p>
</li><li>
<p>URI(‘<a href="http://a/b/c/d;p?q').merge('../../../g">a/b/c/d;p?q’).merge(‘../../../g</a>’) == URI(‘<a href="http://a/g">a/g</a>’)</p>
</li><li>
<p>URI(‘<a href="http://a/b/c/d;p?q').merge('../../../../g">a/b/c/d;p?q’).merge(‘../../../../g</a>’) == URI(‘<a href="http://a/g">a/g</a>’)</p>
</li></ul>
</li></ul>
</li></ul>
</li><li>
<p>rss</p>
<ul><li>
<p>0.1.6 -&gt; 0.2.4</p>
</li><li>
<p>Fix image module URI</p>
</li><li>
<p>Atom support</p>
</li><li>
<p>ITunes module support</p>
</li><li>
<p>Slash module support</p>
</li><li>
<p>content:encoded with RSS 2.0 support</p>
</li></ul>
</li></ul>

<h3 id="label-Interpreter+Implementation">Interpreter Implementation<span><a href="#label-Interpreter+Implementation">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>passing a block to a <a href="../Proc.html"><code>Proc</code></a> [experimental]</p>

<p>This implementation in current shape is known to be buggy/broken, especially with nested block invocation.  Take this as an experimental feature.</p>
</li><li>
<p>stack trace</p>

<p>On non-SystemStackError exception, full stack trace is shown.</p>
</li></ul>

<h3 id="label-Compatibility+issues+-28excluding+feature+bug+fixes-29">Compatibility issues (excluding feature bug fixes)<span><a href="#label-Compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../String.html#method-i-slice-21"><code>String#slice!</code></a> had some unintentional bugs and they have been fixed because either they disagreed with documentation or their respective behavior of slice.  Unfortunately, this causes some incompatibilities in the following (somewhat rare) cases.</p>
<ul><li>
<p>slice! no longer expands the array when an out-of-boundary value is given.</p>

<pre class="ruby"><span class="ruby-comment"># Ruby 1.8.6</span>
<span class="ruby-identifier">a</span> = [<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">4</span>,<span class="ruby-value">0</span>)   <span class="ruby-comment">#=&gt; nil</span>
<span class="ruby-identifier">a</span>               <span class="ruby-comment">#=&gt; [1,2,nil,nil]</span>

<span class="ruby-comment"># Ruby 1.8.7</span>
<span class="ruby-identifier">a</span> = [<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">4</span>,<span class="ruby-value">0</span>)   <span class="ruby-comment">#=&gt; nil</span>
<span class="ruby-identifier">a</span>               <span class="ruby-comment">#=&gt; [1,2]</span>
</pre>
</li><li>
<p>slice! no longer raises an exception but returns nil when a negative length or out-of-boundary negative position is given.</p>

<pre class="ruby"><span class="ruby-comment"># Ruby 1.8.6</span>
<span class="ruby-identifier">a</span> = [<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">1</span>,<span class="ruby-value">-1</span>)  <span class="ruby-comment">#=&gt; (raises IndexError)</span>
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">-5</span>,<span class="ruby-value">1</span>)  <span class="ruby-comment">#=&gt; (raises IndexError)</span>

<span class="ruby-comment"># Ruby 1.8.7</span>
<span class="ruby-identifier">a</span> = [<span class="ruby-value">1</span>,<span class="ruby-value">2</span>]
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">1</span>,<span class="ruby-value">-1</span>)  <span class="ruby-comment">#=&gt; nil</span>
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">-5</span>,<span class="ruby-value">1</span>)  <span class="ruby-comment">#=&gt; nil</span>
</pre>
</li></ul>
</li><li>
<p><a href="../String.html#method-i-to_i"><code>String#to_i</code></a>, <a href="../String.html#method-i-hex"><code>String#hex</code></a> and <a href="../String.html#method-i-oct"><code>String#oct</code></a> no longer accept a sequence of underscores (‘__’) as part of a number.</p>

<pre class="ruby"><span class="ruby-comment"># Ruby 1.8.6</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">to_i</span>     <span class="ruby-comment">#=&gt; 10</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">to_i</span>(<span class="ruby-value">2</span>)  <span class="ruby-comment">#=&gt; 2  # 0b10</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">oct</span>      <span class="ruby-comment">#=&gt; 8  # 010</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">hex</span>      <span class="ruby-comment">#=&gt; 16 # 0x10</span>

<span class="ruby-comment"># Ruby 1.8.7</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">to_i</span>     <span class="ruby-comment">#=&gt; 1</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">to_i</span>(<span class="ruby-value">2</span>)  <span class="ruby-comment">#=&gt; 1</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">oct</span>      <span class="ruby-comment">#=&gt; 1</span>
<span class="ruby-string">&#39;1__0&#39;</span>.<span class="ruby-identifier">hex</span>      <span class="ruby-comment">#=&gt; 1</span>
</pre>

<p>The old behavior was inconsistent with Ruby syntax and considered as a bug.</p>
</li><li>
<p>date</p>
<ul><li>
<p>Date.parse</p>

<p>‘##.##.##’ (where each ‘#’ is a digit) is now taken as ‘YY.MM.DD’ instead of ‘MM.DD.YY’.  While the change may confuse you, you can always use Date.strptime() when you know what you are dealing with.</p>
</li></ul>
</li><li>
<p>REXML</p>
<ul><li>
<p>REXML::Document.entity_expansion_limit=</p>

<p>New method to set the entity expansion limit. By default the limit is set to 10000.  See the following URL for details.</p>

<p><a href="https://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml">www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml</a>/</p>
</li></ul>
</li><li>
<p>stringio</p>
<ul><li>
<p>StringIO#each_byte</p>

<p>The return value changed from nil to self.  This is what the document says and the same as each_line() does.</p>
</li></ul>
</li><li>
<p>tempfile</p>
<ul><li>
<p>The file name format has changed.  No dots are included by default in temporary file names any more.  See above for how to specify a suffix.</p>
</li></ul>
</li><li>
<p>uri</p>
<ul><li>
<p>See above for details.</p>
</li></ul>
</li></ul>

<h2 id="label-Changes+since+the+1.8.5+release">Changes since the 1.8.5 release<span><a href="#label-Changes+since+the+1.8.5+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-New+platforms-2Fbuild+tools+support">New platforms/build tools support<span><a href="#label-New+platforms-2Fbuild+tools+support">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>IA64 HP-UX</p>
</li><li>
<p>Visual C++ 8 SP1</p>
</li><li>
<p>autoconf 2.6x</p>
</li></ul>

<h3 id="label-Global+constants">Global constants<span><a href="#label-Global+constants">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>RUBY_PATCHLEVEL</p>

<p>New constant since 1.8.5-p1.</p>
</li></ul>

<h3 id="label-Library+updates+-28outstanding+ones+only-29">Library updates (outstanding ones only)<span><a href="#label-Library+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>builtin classes</p>
<ul><li>
<p>New method: Kernel#instance_variable_defined?</p>
</li><li>
<p>New method: <a href="../Module.html#method-i-class_variable_defined-3F"><code>Module#class_variable_defined?</code></a></p>
</li><li>
<p>New feature: <a href="../Dir.html#method-c-glob"><code>Dir::glob()</code></a> can now take an array of glob patterns.</p>
</li></ul>
</li><li>
<p>date</p>
<ul><li>
<p>Updated based on date2 4.0.3.</p>
</li></ul>
</li><li>
<p>digest</p>
<ul><li>
<p>New internal APIs for C and Ruby.</p>
</li><li>
<p>Support for autoloading.</p>

<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;digest&#39;</span>

<span class="ruby-comment"># autoloads digest/md5</span>
<span class="ruby-identifier">md</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">digest</span>(<span class="ruby-string">&quot;string&quot;</span>)
</pre>
</li><li>
<p>New digest class methods: file</p>
</li><li>
<p>New digest instance methods: clone, reset, new, inspect, digest_length (alias size or length), block_length()</p>
</li><li>
<p>New library: digest/bubblebabble</p>
</li><li>
<p>New function: Digest(name)</p>
</li></ul>
</li><li>
<p>fileutils</p>
<ul><li>
<p>New option for FileUtils.cp_r(): :remove_destination</p>
</li></ul>
</li><li>
<p>nkf</p>
<ul><li>
<p>Updated based on nkf as of 2007-01-28.</p>
</li></ul>
</li><li>
<p>thread</p>
<ul><li>
<p>Replaced with much faster mutex implementation in C.  The former implementation, which is slow but considered to be stable, is available with a configure option ‘–disable-fastthread’.</p>
</li></ul>
</li><li>
<p>tk</p>
<ul><li>
<p>Updated Tile extension support based on Tile 0.7.8.</p>
</li><li>
<p>Support –without-X11 configure option for non-X11 versions of Tcl/Tk (e.g. Tcl/Tk Aqua).</p>
</li><li>
<p>New sample script: irbtkw.rbw – IRB on Ruby/Tk. It has no trouble about STDIN blocking on Windows.</p>
</li></ul>
</li><li>
<p>webrick</p>
<ul><li>
<p>New method: WEBrick::Cookie.parse_set_cookies()</p>
</li></ul>
</li></ul>

<h3 id="label-Compatibility+issues+-28excluding+feature+bug+fixes-29">Compatibility issues (excluding feature bug fixes)<span><a href="#label-Compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>builtin classes</p>
<ul><li>
<p><a href="../String.html#method-i-intern"><code>String#intern</code></a> now raises <a href="../SecurityError.html"><code>SecurityError</code></a> when $SAFE level is greater than zero.</p>
</li></ul>
</li><li>
<p>date</p>
<ul><li>
<p>Time#to_date and Time#to_datetime are added as private methods. They cause name conflict error in ActiveSupport 1.4.1 and prior, which comes with Rails 1.2.2 and prior.  Updating ActiveSupport and/or Rails to the latest versions fixes the problem.</p>
</li></ul>
</li><li>
<p>digest</p>
<ul><li>
<p>The constructor does no longer take an initial string to feed. The following examples show how to migrate:</p>

<pre class="ruby"><span class="ruby-comment"># Before</span>
<span class="ruby-identifier">md</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;string&quot;</span>)
<span class="ruby-comment"># After (works with any version)</span>
<span class="ruby-identifier">md</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">update</span>(<span class="ruby-string">&quot;string&quot;</span>)

<span class="ruby-comment"># Before</span>
<span class="ruby-identifier">hd</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;string&quot;</span>).<span class="ruby-identifier">hexdigest</span>
<span class="ruby-comment"># After (works with any version)</span>
<span class="ruby-identifier">hd</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">hexdigest</span>(<span class="ruby-string">&quot;string&quot;</span>)
</pre>
</li><li>
<p>Digest::Base#==</p>
<ul><li>
<p>self == string</p>

<p>Automatic detection between binary digest values and hexadecimal digest values has been dropped.  It is always assumed that a hexadecimal digest value is given for comparison.</p>
</li><li>
<p>self == md</p>

<p>Digest objects are compared by the resulting digest values, not by the exact vector states.</p>
</li></ul>
</li></ul>
</li><li>
<p>fileutils</p>
<ul><li>
<p>A minor implementation change breaks Rake &lt;=0.7.1. Updating Rake to 0.7.2 or higher fixes the problem.</p>
</li></ul>
</li><li>
<p>tk</p>
<ul><li>
<p>Tk::X_Scrollable (Y_Scrollable) is renamed to Tk::XScrollable (YScrollable). Tk::X_Scrollable (Y_Scrollable) is still available, but it is an alias name.</p>
</li></ul>
</li></ul>

</main>

</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

